Repository navigation
Restructure CHODE into modular package with full feature suite - #1
Merged
Merged
Conversation
…, memory, RAG, Deck GUI Grow CHODE from a single 2,900-line file into a proper package with twelve new feature areas, a 60-test offline suite, CI, a browser GUI and a real brand. - Package: chode/ (cli, repl, commands, agent, tools, permissions, llm, mcp, ui, config, paths, security, session, skills, state, wizard, doctor, menu) with pyproject.toml, `chode` console script, python -m chode, install.sh/.ps1. - Plan Bridge: claude-plan / codex-plan / gemini-plan / custom-plan providers drive the vendor CLIs with CHODE mounted as an MCP server (chode mcp-serve); `chode ride <cli>` for interactive handoff. - The Gulp (chode import): one-click import of rules, skills, commands, agents, MCP servers, permissions and hooks from 20+ coding agents, secrets stripped. - ORDER: 17-check repo audit with a 0-100 score, deterministic scaffold, model- written README/ABOUT.md/tests via the repo-order skill, rotating backups, tidy. - Persistent memory (instruction files + episodic store + reflection), conscience file + risk ledger, local BM25 RAG with optional embeddings, hooks (Claude Code format compatible), sub-agents with personas. - Publish: /ship (secret scan, model-written commit, push, repo creation), autocommit, /release, Hugging Face uploads. Banner/icon generator. - The Deck: zero-dependency browser GUI (http.server + SSE, localhost + token). - Streaming for Anthropic and OpenAI-style APIs with live markdown, status line, @file completion, /diff, /git; hardened security (chained-command allow-listing, deny lists, SSRF guard, injection detection, chmod 600 config). - Docs: rebuilt README with banner + badges, ABOUT.md, CHANGELOG, CONTRIBUTING, SECURITY, CHODE.md, docs/, GitHub Pages landing page. - Removed generate_album_cover.py (contained a hard-coded API key fragment and unrelated content) and the personal site assets. Co-Authored-By: Claude Mythos 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TZ7NjtFH1yYCc1VKAJuGFg
…input Co-Authored-By: Claude Mythos 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TZ7NjtFH1yYCc1VKAJuGFg
…ly built wheel Workflows now run only from the Actions tab (workflow_dispatch), so pushes never spend Actions minutes or show failing checks. README swaps the Actions badge for a static tests badge and documents the manual release path. Co-Authored-By: Claude Mythos 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01TZ7NjtFH1yYCc1VKAJuGFg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a major restructuring that transforms CHODE from a single-file script into a fully-featured, modular Python package with comprehensive tooling for AI-assisted development. The codebase is reorganized into logical modules, the website is simplified, and extensive documentation and testing infrastructure are added.
Key Changes
Core Architecture
chode.pyinto a properchode/package with 30+ focused modulesagent.py— agent loop and system prompt generationllm.py— unified LLM client supporting Anthropic, OpenAI-compatible, and Plan Bridgetools.py— built-in tool definitions and executors (file I/O, bash, web, git, etc.)memory.py— persistent memory with instruction files, episodic storage, and session transcriptsskills.py— portable SKILL.md folder system compatible with Claude Code/Codexpermissions.py— permission modes and dangerous-command guardssecurity.py— secret redaction, path guards, SSRF protection, secret scanningconfig.py— provider configuration, pricing, and config load/saverag.py— local codebase indexing with BM25 and optional dense embeddingsorder.py— ORDER system for project auditing, scaffolding, and backupspublish.py— git integration, commit messages, releases, GitHub/HF publishingplans.py— Plan Bridge for riding vendor CLIs as CHODE's modelimporter.py— one-click import from VS Code, Cursor, Claude Code, Codex, etc.mcp.py— MCP (Model Context Protocol) client with stdio and HTTP transportsmcp_server.py— CHODE as an MCP server for other toolshooks.py— lifecycle hooks around CHODE's actionssession.py— checkpoints and session persistencerepl.py— chat REPL wiring UI, agent loop, memory, and publishingcommands.py— slash commands and custom .md commandsmenu.py— launch menu with provider/model selectionwizard.py— interactive setup and import flowsdoctor.py— environment audit and live health checksconscience.py— safety stance and ledger of risky momentsbanner.py— banner and icon generation (SVG/PNG)gui.py— browser-based GUI using Server-Sent Eventsui.py— terminal UI with colors, spinner, markdown renderer, menuscli.py— command-line entry pointpaths.py— centralized path managementstate.py— shared runtime state__init__.py/__main__.py— package initializationFeatures Added
https://claude.ai/code/session_01TZ7NjtFH1yYCc1VKAJuGFg